package cn.bqjr.eily.samples.entity.po;

import cn.bqjr.eily.samples.entity.BasePO;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

@TableName("sys_user")
public class User extends BasePO {

    private static final long serialVersionUID = 1L;

    @TableId
    private Long userId;
    /**
     * 登陆账号
     */
    private String loginId;
    /**
     * 登陆密码
     */
    private String password;
    /**
     * 用户中文名
     */
    private String userCName;
    /**
     * 电子邮箱
     */
    private String email;
    /**
     * 联系电话
     */
    private String phone;
    /**
     * 归属公司ID
     */
    private String companyId;
    /**
     * 上级ID
     */
    private Long parentUserId;
    /**
     * 是否锁定，1-是，0-不是
     */
    private Boolean locked;

    public Long getUserId() {
        return userId;
    }

    public User setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public String getLoginId() {
        return loginId;
    }

    public User setLoginId(String loginId) {
        this.loginId = loginId;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public User setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getUserCName() {
        return userCName;
    }

    public User setUserCName(String userCName) {
        this.userCName = userCName;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public User setEmail(String email) {
        this.email = email;
        return this;
    }

    public String getPhone() {
        return phone;
    }

    public User setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public String getCompanyId() {
        return companyId;
    }

    public User setCompanyId(String companyId) {
        this.companyId = companyId;
        return this;
    }

    public Long getParentUserId() {
        return parentUserId;
    }

    public User setParentUserId(Long parentUserId) {
        this.parentUserId = parentUserId;
        return this;
    }

    public Boolean isLocked() {
        return locked;
    }

    public User setLocked(Boolean locked) {
        this.locked = locked;
        return this;
    }

    public static final String USERID = "userId";

    public static final String LOGINID = "loginId";

    public static final String PASSWORD = "password";

    public static final String USERCNAME = "userCName";

    public static final String EMAIL = "email";

    public static final String PHONE = "phone";

    public static final String COMPANYID = "companyId";

    public static final String PARENTUSERID = "parentUserId";

    public static final String LOCKED = "locked";
}
